function navigate(url) {
    var seconds = document.getElementById('seconds').innerHTML;
    setInterval(function() {
        if (seconds <= 1)
            window.location = url;
        else
            document.getElementById('seconds').innerHTML = --seconds;
    }, 1000);
}
